$.extend($.validator.messages, {
    required: "This field is required.",
    remote: "Please fix this field.",
    email: "Please enter a valid email address.",
    url: "Please enter a valid URL.",
    date: "Please enter a valid date.",
    dateISO: "Please enter a valid date (ISO).",
    number: "Only decimal numbers allowed.",
    digits: "Only digits allowed.",
    creditcard: "Please enter a valid credit card number.",
    equalTo: "Not matched.",
    accept: "Invalid extension.",
    maxlength: jQuery.validator.format("Please enter no more than {0} characters."),
    minlength: jQuery.validator.format("Please enter at least {0} characters."),
    rangelength: jQuery.validator.format("Please enter a value between {0} and {1} characters long."),
    range: jQuery.validator.format("Please enter a value between {0} and {1}."),
    max: jQuery.validator.format("Please enter a value less than or equal to {0}."),
    min: jQuery.validator.format("Please enter a value greater than or equal to {0}."),
	filesize: $.validator.format("Max size allowed is {0} MB."),
	selectrequired: "This field is required.",
	maxattach: $.validator.format("Max attachments number allowed is {0}"),
	filerequired:"This field is required."
});

